package com.liner.homework.second;

public class Fish extends Animal implements Swim{
    public Fish(String name, String color, int age) {
        super(name, color, age);
    }

    @Override
    void eat() {
        System.out.println(age + "岁的" + color+ name +"正在吃浮游生物...");
    }

    @Override
    public void swim() {
        System.out.println(name + "在游泳...");
    }
}
